<%@page import="com.mmy.domain.sys.TSysUser"%>
<%@page import="com.mmy.domain.sys.TSysOrg"%>
<%@page import="com.mmy.domain.bidtender.TBidTender"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
 <%
 	TSysUser tSysUser = (TSysUser)session.getAttribute("tSysUser");
%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/include1.jsp"></jsp:include>
	
		<title>招投标管理</title>
	</head>
	<body>
<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/FrontHeader.jsp"></jsp:include>
<div id="index-back">
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<main class="at-padding-large-bottom">
			<article>
				<header class="frontbg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
					<div class="page-header container">
							<div class="row">
				<div class="span-12 col">
					<h2>
					<input type="hidden" name="strInviteID" value="${strInviteID }"/>
						<label>${strInviteName}的投标信息</label>
						</h2>
				</div>

			</div>
					</div>
				</header>
				<section class="container">
						<!-- 投标信息展示 -->
					<div class="information" >
						<div class="input-container">
						
							<div class="select-condition">
							<form action="#" class="info-form" >
								<div class="at-float-right">
							<input type="button" class="btn " value="增加"  onclick="createBidTender('${strInviteID }','${strInviteName}') "/>
							<input type="button" class="btn"  value="修改" onclick="updateBidTender() "/>
							<input type="button" class="btn"  value="提交" onclick="updateBidTenderState()"/>
							</div>
							</form>
						</div>
						<table class="info-table">
							<tr>
							<th><label>选择</label></th> 
								<th><label>投标编号</label></th> 
								<th><label>投标公司</label></th>
								<th><label>预算金额</label></th> 
								<th><label>出行日期</label></th>
								<th><label>返程日期</label></th> 
								<th><label>中标状态</label></th> 
								
							</tr>
							<!-- 循环显示每个用户的信息 用jstl-->
      					  <c:forEach items="${lstBidTender}" var="lstBidTender" varStatus="status">
           				 	<tr >
            			   		<td ><input type="radio" name="radioThis" value="${lstBidTender.getTenderID()}" /></td> 
			                	<td ><label>${lstBidTender.getTenderID()}</label></td>
				                <td ><a href="frontbidtenderinfo?iTenderID=${lstBidTender.getTenderID()}"><label>${lstBidTender.getOrgName()}</label></a></td>
				                <td ><label>${lstBidTender.getBudget()}</label></td>
				               
						<td>
						<fmt:formatDate value='${lstBidTender.getOutDate()}' pattern='yyyy-MM-dd'/>
						</td>
						<td>
						<fmt:formatDate value='${lstBidTender.getBackDate()}' pattern='yyyy-MM-dd'/>
						</td>
						 <td >
						<!--  不要删除  修改时需要用到 投标提交方法时要用到  2020.12.15 hanxl -->
						 <input type="hidden" name="State" value="${lstBidTender.getState()}" />
						    <c:if test="${lstBidTender.getState()==0}">
				         <label>未提交</label>
				     	</c:if>  
				        <c:if test="${lstBidTender.getState()==1}">
				         <label>未中标</label>
				     	</c:if>  
				     	 <c:if test="${lstBidTender.getState()==2}">
				     	 <label>中标</label>
				     	</c:if>
				     	 <c:if test="${lstBidTender.getState()==3}">
				     	 <label>终止</label>
				     	</c:if>
				     	</td> 
				       </tr>
	      				  </c:forEach>
						</table>
						</div>	
						<center>
				
		<input type="button" class="btn" value="返回" onclick="rehidder()"/>
			</center> 
					</div>
					<!-- 招标基本信息展示结束 -->
				</section>
				
					
					
			</article>
			
		</main>
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main End -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
</div>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
	</div>
	<!-- /st-container -->
	
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Script Embed Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Slider -->
<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
		<script>
			new GridScrollFx( document.getElementById( 'news-grid' ), {
				viewportFactor : 0.4
			} );
		</script>

</body>

</html>